﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Create.Master" Inherits="System.Web.Mvc.ViewPage<Langben.DAL.contract>" %>

<%@ Import Namespace="Common" %>
<%@ Import Namespace="Models" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CurentPlace" runat="server">
      创建 contract
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <fieldset>
        <legend>
            <input class="a2 f2" type="submit" value="创建" />
            <input class="a2 f2" type="button" onclick="BackList('contract')" value="返回" />
        </legend>
        <div class="bigdiv">
            
        <div class="editor-label">
            <a class="anUnderLine" onclick="showModalOnly('zha_ID','../../zhaobiaoPlan');">
                <%: Html.LabelFor(model => model.zha_ID) %>
            </a>：
        </div>
        <div class="editor-field">
            <div id="checkzha_ID">            
            </div>
            <%: Html.HiddenFor(model => model.zha_ID)%>
        </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.serialId) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.serialId) %>
                <%: Html.ValidationMessageFor(model => model.serialId) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.name) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.name) %>
                <%: Html.ValidationMessageFor(model => model.name) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.merchant) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.merchant) %>
                <%: Html.ValidationMessageFor(model => model.merchant) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.registerTime) %>：
            </div>
            <div class="editor-field">
                <%: Html.TextBox("registerTime", ((Model != null && Model.registerTime != null) ? Model.registerTime.ToString().AsDateTime().ToString("yyyy-MM-dd") : ""), new { style = "width: 244px;", @class="easyui-datebox" })%>
                <%: Html.ValidationMessageFor(model => model.registerTime) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.totalMoney) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.totalMoney) %>
                <%: Html.ValidationMessageFor(model => model.totalMoney) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.deviceNumber) %>：
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.deviceNumber, new {  onkeyup = "isInt(this)", @class="text-box single-line" })%>
                <%: Html.ValidationMessageFor(model => model.deviceNumber) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.bankNumber) %>：
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.bankNumber, new {  onkeyup = "isInt(this)", @class="text-box single-line" })%>
                <%: Html.ValidationMessageFor(model => model.bankNumber) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.bank) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.bank) %>
                <%: Html.ValidationMessageFor(model => model.bank) %>
            </div>        
            <div class="editor-label">
                <%: Html.LabelFor(model => model.IsImport) %>：
            </div>
            <div class="editor-field">
             <%: Html.RadioButtonListFor(model => model.IsImport,Models.SysFieldModels.GetSysField("contract","IsImport"),false) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.company) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.company) %>
                <%: Html.ValidationMessageFor(model => model.company) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.foreignPrice) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.foreignPrice) %>
                <%: Html.ValidationMessageFor(model => model.foreignPrice) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.jiaohuoTime) %>：
            </div>
            <div class="editor-field">
                <%: Html.TextBox("jiaohuoTime", ((Model != null && Model.jiaohuoTime != null) ? Model.jiaohuoTime.ToString().AsDateTime().ToString("yyyy-MM-dd") : ""), new { style = "width: 244px;", @class="easyui-datebox" })%>
                <%: Html.ValidationMessageFor(model => model.jiaohuoTime) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.contactName) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.contactName) %>
                <%: Html.ValidationMessageFor(model => model.contactName) %>
            </div>     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.contactTelephone) %>：
            </div>
            <div class="editor-field">
                <%: Html.EditorFor(model => model.contactTelephone) %>
                <%: Html.ValidationMessageFor(model => model.contactTelephone) %>
            </div>
            <br style="clear: both;" />
            <div class="editor-label">
                <%: Html.LabelFor(model => model.remark) %>：
            </div>
            <div class="textarea-box">
                <%: Html.TextAreaFor(model => model.remark) %>
                <%: Html.ValidationMessageFor(model => model.remark) %>
            </div>
        </div>
    </fieldset>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
    
    <script type="text/javascript">

        $(function () {
            

        });
              

    </script>
</asp:Content>

